import requests
from bs4 import BeautifulSoup
import re

# 获取微信公众号文章的HTML源码
url = "https://mp.weixin.qq.com/s/l-S5TQjeP8DYE0G7DHl59w"
html = requests.get(url).text
print(html)
# 使用BeautifulSoup解析HTML源码
soup = BeautifulSoup(html, "html.parser")

# 提取出文章的文本内容
article_text = soup.get_text()

# 使用正则表达式匹配划线的内容
pattern = r'<span\s+style="text-decoration:\s+line-through;">(.*?)</span>'
matches = re.findall(pattern, article_text)

# 打印划线的内容
for match in matches:
    print(match)
